<%@ Page Language="C#" MasterPageFile="~/cms.master" AutoEventWireup="true" CodeFile="Scheme.aspx.cs"
    Inherits="cms_Scheme" ValidateRequest="false" Title="<%$Resources:Language,CmsShemeTitle %>" %>

<%@ Register Assembly="Winthusiasm.HtmlEditor" Namespace="Winthusiasm.HtmlEditor"
    TagPrefix="cc1" %>
<%@ Register Src="../controls/ctrlShowInfo.ascx" TagName="ctrlShowInfo" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="axc" %>
<%@ Register Src="~/controls/ctrlWait.ascx" TagName="ctrlWait" TagPrefix="ctrl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">

    <script type="text/javascript" src="../Javascript/jquery.js"></script>

    <script type="text/javascript" src="../Javascript/Scheme.js"></script>

    <div id="dScheme">
        <h2>
            <%=Resources.Language.SMScheme%></h2>
        <ctrl:ctrlWait ID="ctrlWait" runat="server" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <uc1:ctrlShowInfo ID="CtrlShowInfo" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <axc:TabContainer ID="tcConfig" runat="server" ActiveTabIndex="0">
            <axc:TabPanel ID="tpCompanyDetails" runat="server" HeaderText="<%$Resources:Language,CompanyData %>">
                <ContentTemplate>
                    <asp:UpdatePanel ID="upCompanyDetails" runat="server">
                        <ContentTemplate>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Name %>:</span>
                                <asp:TextBox ID="tbCompanyName" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Owner %>: </span>
                                <asp:TextBox ID="tbCompanyOwner" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Street %>: </span>
                                <asp:TextBox ID="tbCompanyStreet" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.City %>: </span>
                                <asp:TextBox ID="tbCompanyTown" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.ZipCode %>: </span>
                                <asp:TextBox ID="tbCompanyZipCode" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.AccountNumber %>: </span>
                                <asp:TextBox ID="tbCompanyAccount" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.NIP %>: </span>
                                <asp:TextBox ID="tbCompanyNIP" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Email %>: </span>
                                <asp:TextBox ID="tbCompanyEmail" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Phone %>: </span>
                                <asp:TextBox ID="tbCompanyPhoneNumber" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Communicator %>: </span>
                                <asp:TextBox ID="tbCompanyOnlineContact" runat="server" CssClass="TextInput"></asp:TextBox>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </axc:TabPanel>
            <axc:TabPanel ID="tpShippingDetails" runat="server" HeaderText="<%$Resources:Language,ShipmentAndInvoicesOptions %>">
                <ContentTemplate>
                    <asp:UpdatePanel ID="upShippingDetails" runat="server">
                        <ContentTemplate>
                            <fieldset>
                                <legend>
                                    <%=Resources.Language.ShipmentOptions %></legend>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.PostDeal %>: </span>
                                    <asp:TextBox ID="tbShipmentAgreement" runat="server" CssClass="TextInputWide"></asp:TextBox>
                                </div>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.ShipmentVatRateValue%>: </span>
                                    <asp:TextBox ID="tbVatAmount" runat="server" CssClass="TextInputWide"></asp:TextBox>
                                </div>
                            </fieldset>
                            <fieldset class="vSeparate">
                                <legend>
                                    <%=Resources.Language.InvoicesOptions %>
                                </legend>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.Tags %>: </span>&nbsp;<span class="TextInputWide">?ID -
                                            <%=Resources.Language.OrderNumber %>| ?NR -
                                            <%=Resources.Language.InvoiceNumber %>| ?Y -
                                            <%=Resources.Language.Year %>| ?M -
                                            <%=Resources.Language.Month %>| ?D -
                                            <%=Resources.Language.Day %>
                                        </span>
                                </div>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.InvoiceNumberMask %>: </span>
                                    <asp:TextBox ID="tbInvoiceNumberMask" runat="server" CssClass="TextInputWide"></asp:TextBox>
                                </div>
                                <div class="vSeparate">
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.LastInvoiceNumber %>: </span>
                                    <asp:TextBox ID="tbInvoiceLastNumber" runat="server" CssClass="TextInputWide"></asp:TextBox>
                                </div>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.InvoiceFooter %>: </span>&nbsp;<span class="peBoxRight">
                                            <asp:TextBox ID="tbInvoiceFooter" runat="server" CssClass="TextInputWide" Height="70px"
                                                TextMode="MultiLine"></asp:TextBox>
                                        </span>
                                </div>
                            </fieldset>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </axc:TabPanel>
            <axc:TabPanel ID="tpEmailConfig" runat="server" HeaderText="<%$Resources:Language,ReportsOptions %>">
                <ContentTemplate>
                    <asp:UpdatePanel ID="upReportsConfig" runat="server">
                        <ContentTemplate>
                            <fieldset>
                                <legend>
                                    <%=Resources.Language.EmailOptions %>
                                </legend>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.NameDisplaying %>: </span>
                                    <asp:TextBox ID="tbCompanyMailDisplayedName" runat="server" CssClass="TextInput"></asp:TextBox>
                                </div>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.OutgoingMailServer %>: </span>
                                    <asp:TextBox ID="tbCompanyMailHost" runat="server" CssClass="TextInput"></asp:TextBox>
                                </div>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.Login %>: </span>
                                    <asp:TextBox ID="tbCompanyMailLogin" runat="server" CssClass="TextInput"></asp:TextBox>
                                </div>
                                <div>
                                    <span class="peInnerBoxLeft">
                                        <%=Resources.Language.Password %>: </span>
                                    <asp:TextBox ID="tbCompanyMailPassword" runat="server" CssClass="TextInput" TextMode="Password"></asp:TextBox>
                                </div>
                            </fieldset>
                            <fieldset class="vSeparate">
                                <legend>
                                    <%=Resources.Language.ReportsOptions %>
                                </legend>
                                <asp:GridView ID="gvAdressesList" runat="server" AutoGenerateColumns="false" OnRowDataBound="gvAdressesListDataBound"
                                    CssClass="cmsTables" DataKeyNames="ProviderUserKey">
                                    <Columns>
                                        <asp:BoundField DataField="Username" HeaderText="<%$Resources:Language, Login %>" />
                                        <asp:BoundField DataField="Email" HeaderText="<%$Resources:Language, Email %>" />
                                        <asp:TemplateField HeaderText="<%$Resources:Language,DailyReport %>">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="cbDailyReport" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$Resources:Language,MonthlyReport %>">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="cbMonthlyReport" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </fieldset>
                            <fieldset class="vSeparate">
                                <legend>
                                    <%=Resources.Language.ProductsOptions %></legend><span class="peInnerBoxLeft">
                                        <%=Resources.Language.LowProductStateBelow %>: </span>
                                <asp:TextBox ID="tbAvailableCountRange" runat="server" CssClass="TextInputShort"></asp:TextBox>
                            </fieldset>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </axc:TabPanel>
            <axc:TabPanel ID="tpNotifications" runat="server" HeaderText="<%$Resources:Language,Notifications %>">
                <ContentTemplate>
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>
                            <div>
                                <span class="peInnerBoxLeft"></span>
                                <asp:Button ID="btnTestNotification" runat="server" OnClick="btnTestNotification_Click"
                                    Text="<%$Resources:Language,ShowNotification %>" />
                                <input id="btnNotificationHelp" type="button" value='<%=Resources.Language.TagList %>'
                                    onclick="ShowHelp(this)" />
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Lang %>:</span>
                                <asp:DropDownList ID="ddlNotifLanguage" runat="server" OnSelectedIndexChanged="ddlNotifLanguage_IndexChanged"
                                    AutoPostBack="true" DataValueField="Culture" DataTextField="Name" CausesValidation="true"
                                    CssClass="DropDownShort">
                                </asp:DropDownList>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.NotificationType %>:</span>
                                <asp:DropDownList runat="server" ID="ddlNotificationType" RepeatDirection="Horizontal"
                                    AutoPostBack="true" OnSelectedIndexChanged="ddlNotificationTypeSelectedIndexChanged"
                                    CausesValidation="true" CssClass="DropDown">
                                    <asp:ListItem Text="<%$Resources:Language,OrderConfirmation %>" Value="Order" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,ShipmentConfirmation %>" Value="Send"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,PaymentConfirmation %>" Value="Payment"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,DelayedPaymentConfirmation %>" Value="Delayed"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,OnlinePaymentConfirmation %>" Value="Online"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,AccountCreatedConfirmation %>" Value="Created"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,AccountActivatedConfirmation %>" Value="Activated"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,NewVoucherConfirmation %>" Value="Voucher"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,PassResetConfirmation %>" Value="Reset"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div id="edit" runat="server">
                                <div class="vSeparate">
                                    <span class="peInnerBoxLeft">
                                        <%= Resources.Language.Header %>:</span>
                                    <asp:TextBox ID="tbNotificationHeader" runat="server" CssClass="TextInputWide"></asp:TextBox>
                                </div>
                                <div class="vSeparate">
                                    <span class="peInnerBoxLeft">
                                        <%= Resources.Language.Content %>:</span> <span class="peBoxRight">
                                            <%-- <cc1:HtmlEditor ID="heNotificationContent" runat="server" ConvertDeprecatedSyntax="false"
                                                OutputXHTML="false" Width="600px"  FormatHtmlMode="false" /> --%>
                                            <asp:TextBox ID="tbNotificationContent" runat="server" TextMode="MultiLine" CssClass="TextInputMultiline"></asp:TextBox>
                                        </span>
                                </div>
                            </div>
                            <div id="dTestNotificationHeader" runat="server" mode="PassThrough" visible="false"
                                class="vSeparate">
                            </div>
                            <div id="dTestNotification" runat="server" mode="PassThrough" visible="false" class="vSeparate">
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </axc:TabPanel>
            <axc:TabPanel ID="tpShopContent" runat="server" HeaderText="<%$Resources:Language,ShopContent %>">
                <ContentTemplate>
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%= Resources.Language.Lang %>:</span>
                                <asp:DropDownList ID="ddlShopContentLanguage" runat="server" OnSelectedIndexChanged="ddlShopContentLanguage_IndexChanged"
                                    AutoPostBack="true" DataValueField="Culture" DataTextField="Name" CausesValidation="true"
                                    CssClass="DropDownShort">
                                </asp:DropDownList>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%= Resources.Language.Scheme %>:</span>
                                <asp:DropDownList ID="ddlShopContetnType" runat="server" OnSelectedIndexChanged="ddlShopContentTypeSelectedIndexChanged"
                                    AutoPostBack="true" CausesValidation="true" CssClass="DropDownShort">
                                    <asp:ListItem Text="<%$Resources:Language,ShopDescription %>" Value="Shop" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,About %>" Value="About"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,Contact %>" Value="Contact"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,Delivery %>" Value="Delivery"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,Shipment %>" Value="Shipment"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,Instalements %>" Value="Instalments"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,Rules %>" Value="Regulation"></asp:ListItem>
                                    <asp:ListItem Text="<%$Resources:Language,Offer %>" Value="Offer"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div id="dExternalUrl" runat="server" class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.ExternalUrl %>:</span>
                                <asp:TextBox ID="tbExternalUrl" runat="server" CssClass="TextInputWide" />
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Content %>:</span> <span class="peInnerBoxRight">
                                        <cc1:HtmlEditor ID="heContent" runat="server" Width="600px" />
                                    </span>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </axc:TabPanel>
            <axc:TabPanel ID="tpPageSettings" runat="server" HeaderText="<%$Resources:Language,PageSettings %>">
                <ContentTemplate>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Lang %>:</span>
                                <asp:DropDownList ID="ddlPageSettingsLanguage" runat="server" OnSelectedIndexChanged="ddlPageSettingsLanguage_IndexChanged"
                                    AutoPostBack="true" DataValueField="Culture" DataTextField="Name" CausesValidation="true"
                                    CssClass="DropDown">
                                </asp:DropDownList>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.TitleTag %>:</span>
                                <asp:TextBox ID="tbTitleTag" runat="server" CssClass="TextInputWide"></asp:TextBox>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.MetatagDescriptionTitle %>: </span>
                                <asp:TextBox ID="tbMetaTagDescription" runat="server" CssClass="TextInputWide"></asp:TextBox>
                            </div>
                            <div>
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.MetatagKeywordsTitle %>: </span>
                                <asp:TextBox ID="tbMetaTagKeywords" runat="server" CssClass="TextInputWide"></asp:TextBox>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.PageFooter %>:</span> <span class="peBoxRight">
                                        <cc1:HtmlEditor ID="hePageFooter" runat="server" Width="600px" />
                                    </span>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.DisplayingProductsComparsion %>: </span><span class="peInnerBoxRight">
                                        <asp:CheckBox ID="cbDisplayingProductsComparsion" runat="server"></asp:CheckBox>
                                    </span><span class="peInnerBoxLeft">
                                        <%=Resources.Language.DisplayingBestsellers%>: </span><span class="peInnerBoxRight">
                                            <asp:CheckBox ID="cbDisplayingBestsellers" runat="server"></asp:CheckBox>
                                        </span><span class="peInnerBoxLeft">
                                            <%=Resources.Language.DisplayingNews%>: </span><span class="peInnerBoxRight">
                                                <asp:CheckBox ID="cbDisplayingNews" runat="server"></asp:CheckBox>
                                            </span>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.DisplayingPartners%>: </span><span class="peInnerBoxRight">
                                        <asp:CheckBox ID="cbDisplayingPartners" runat="server"></asp:CheckBox>
                                    </span><span class="peInnerBoxLeft"><span class="floatRight">
                                        <%=Resources.Language.AccountCreatedConfirmation %>: </span></span><span class="peInnerBoxRight">
                                            <asp:CheckBox ID="cbMailConfirmation" runat="server" />
                                        </span><span class="peInnerBoxLeft"><span class="floatRight">
                                            <%=Resources.Language.ShowAvailableCount %>: </span></span><span class="peInnerBoxRight">
                                                <asp:CheckBox ID="cbShowAvailableCount" runat="server" />
                                            </span>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.DisplayCrossSell%>: </span><span class="peInnerBoxRight">
                                        <asp:CheckBox ID="cbShowCrossSell" runat="server"></asp:CheckBox>
                                    </span>
                            </div>
                            <div class="vSeparate">
                                <span class="peInnerBoxLeft">
                                    <%=Resources.Language.Theme %>:</span><asp:DropDownList ID="ddlThemes" runat="server"
                                        DataValueField="Name" DataTextField="Name">
                                    </asp:DropDownList>
                                </asp:TextBox>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </axc:TabPanel>
            <axc:TabPanel ID="tpPartners" runat="server" HeaderText="<%$Resources:Language,Partners %>">
                <ContentTemplate>
                    <div>
                        <table class="cmsTables">
                            <tr>
                                <th>
                                    ID
                                </th>
                                <th>
                                    <%=Resources.Language.Image%>
                                </th>
                                <th>
                                    <%=Resources.Language.Weigth%>
                                </th>
                                <th>
                                    <%=Resources.Language.ActiveM%>
                                </th>
                                <th>
                                    <%=Resources.Language.PartnersUrl%>
                                </th>
                                <th>
                                </th>
                            </tr>
                            <asp:Repeater ID="rptPartners" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%#Eval("PartnerID") %>
                                        </td>
                                        <td>
                                            <asp:Image ID="imgPArtners" runat="server" ImageUrl='<%#Eval("VirtualPath") %>' Style="max-height: 40px;
                                                max-width: 160px;" /><br />
                                            <%=Resources.Language.Name %>:&nbsp;
                                            <%#Eval("Name")%>
                                        </td>
                                        <td>
                                            <%#Eval("Weight")%>
                                        </td>
                                        <td>
                                            <%#Convert.ToBoolean(Eval("IsActive"))?Resources.Language.Yes:Resources.Language.No%>
                                        </td>
                                        <td>
                                            <%#Eval("PartnersUrl")%>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="lPartnersEdit" runat="server" OnCommand="PartnersCommand" CommandArgument='<%#Eval("PartnerID") %>'
                                                CommandName="Edit" Text="<%$Resources:Language,Edit %>"></asp:LinkButton>&nbsp;
                                            <asp:LinkButton ID="lPartnersDelete" runat="server" OnCommand="PartnersCommand" CommandArgument='<%#Eval("PartnerID") %>'
                                                CommandName="Delete" Text="<%$Resources:Language,DeleteUpper %>"></asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:FileUpload ID="fuPartners" runat="server" />
                                    <asp:HiddenField ID="hfPartnerName" runat="server" />
                                </td>
                                <td>
                                    <asp:TextBox ID="tbPartnersWeight" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:CheckBox ID="cbPartnerIsActive" runat="server" Checked="true"></asp:CheckBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="tbPartnersUrl" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="btnPartnersAdd" runat="server" OnCommand="PartnersCommand" CommandName="Save"
                                        Text="<%$Resources:Language,Add %>" />&nbsp;
                                    <asp:Button ID="btnPartnersCancel" runat="server" OnCommand="PartnersCommand" CommandName="Cancel"
                                        Text="<%$Resources:Language,Cancel %>" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </ContentTemplate>
            </axc:TabPanel>
            <axc:TabPanel ID="tpVatRates" runat="server" HeaderText="<%$Resources:Language, VatRates %>">
                <ContentTemplate>
                    <asp:UpdatePanel ID="upVatRates" runat="server">
                        <ContentTemplate>
                            <fieldset>
                                <legend>
                                    <%= Resources.Language.VatRates%>
                                </legend>
                                <div>
                                    <asp:Repeater ID="rptVatRates" runat="server">
                                        <HeaderTemplate>
                                            <table class="cmsTables">
                                                <tr>
                                                    <th>
                                                        <%=Resources.Language.ID %>
                                                    </th>
                                                    <th>
                                                        <%=Resources.Language.TaxValue %>
                                                    </th>
                                                    <th>
                                                        <%=Resources.Language.DefaultTaxRate %>
                                                    </th>
                                                    <th>
                                                    </th>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <%#((ShopModel.VatRate)Container.DataItem).VatRateID %>
                                                </td>
                                                <td>
                                                    <%#((ShopModel.VatRate)Container.DataItem).Value %>
                                                </td>
                                                <td>
                                                    <%#((ShopModel.VatRate)Container.DataItem).Default ? Resources.Language.Yes : Resources.Language.No%>
                                                </td>
                                                <td>
                                                    <asp:LinkButton ID="lbtnVatRateEdit" runat="server" OnCommand="VatRatesCommand" CommandName="Edit"
                                                        CommandArgument='<%# ((ShopModel.VatRate)Container.DataItem).VatRateID%>'><%=Resources.Language.Edit %></asp:LinkButton>
                                                    <asp:LinkButton ID="lbtnVatRateDelete" runat="server" CommandArgument='<%# ((ShopModel.VatRate)Container.DataItem).VatRateID%>'
                                                        OnCommand="VatRatesCommand" CommandName="Delete"><%=Resources.Language.DeleteUpper %></asp:LinkButton>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    <tr>
                                        <td>
                                            <asp:HiddenField ID="hfVatRateID" runat="server" Value="" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbVatRateValue" runat="server" />
                                            <asp:CompareValidator ID="vxVatRateValue" runat="server" ValidationGroup="VatRate"
                                                Operator="DataTypeCheck" ControlToValidate="tbVatRateValue" ErrorMessage="*"
                                                Type="Double"></asp:CompareValidator>
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="tbVatRateDefault" runat="server" />
                                        </td>
                                        <td>
                                            <asp:Button ID="btnVatRatesSave" runat="server" Text="<%$Resources:Language,Add %>"
                                                CommandName="Save" OnCommand="VatRatesCommand" ValidationGroup="VatRate" />
                                            <asp:Button ID="btnVatRatesCancel" runat="server" Text="<%$Resources:Language,Cancel %>"
                                                CommandName="Cancel" OnCommand="VatRatesCommand" />
                                        </td>
                                    </tr>
                                    </table> </span>
                                </div>
                            </fieldset>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </axc:TabPanel>
        </axc:TabContainer>
        <asp:UpdatePanel ID="UpdatePanel5" runat="server">
            <ContentTemplate>
                <asp:Button ID="btnSaveConfig" runat="server" Text="<%$Resources:Language,SaveConfiguration %>"
                    OnClick="btnSaveConfig_Click" Width="200px" />
                <asp:Button ID="btnCancel" runat="server" Text="<%$Resources:Language,Cancel %>"
                    OnClick="btnCancel_Click" Width="100px" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <fieldset id="divNotificationHelp" style="display: none;">
            <legend>
                <%= Resources.Language.Tags %></legend>
            <p style="overflow: auto; height: 599px;">
                <strong style="text-align: center;">
                    <%=Resources.Language.ShopData %></strong>
                <br />
                ?Account? -
                <%=Resources.Language.AccountNumber %>
                <br />
                ?Email? -
                <%=Resources.Language.Email %>
                <br />
                ?Name? -
                <%=Resources.Language.Name %>
                <br />
                ?NIP?
                <%=Resources.Language.NIP %>
                <br />
                ?OnlineContact? -
                <%=Resources.Language.Communicator %>
                <br />
                ?Owner? -
                <%=Resources.Language.Owner %>
                <br />
                ?PhoneNumber? -
                <%=Resources.Language.Phone %>
                <br />
                ?Street? -
                <%=Resources.Language.Street %>,
                <%=Resources.Language.Number %>
                <br />
                ?Town? -
                <%=Resources.Language.City %>
                <br />
                ?ZipCode? -
                <%=Resources.Language.ZipCode %>
                <br />
                <strong style="text-align: center;">
                    <%=Resources.Language.OrderDetails %></strong>
                <br />
                ?IDRealization? -
                <%=Resources.Language.Number %>
                <br />
                ?InvoiceNumber? -
                <%=Resources.Language.InvoiceNumber %>
                <br />
                ?StartDate? -
                <%=Resources.Language.OrderStartDate %>
                <br />
                ?EndDate? -
                <%=Resources.Language.OrderEndDate %>
                <br />
                ?TransferID? -
                <%=Resources.Language.TransferTitle %>
                <br />
                ?Status? -
                <%=Resources.Language.Status %>
                <br />
                ?TotalAmountNetto? -
                <%=Resources.Language.OrderTotalCostNetto %>
                <br />
                ?TotalAmountBrutto? -
                <%=Resources.Language.OrderTotalCostBrutto %>
                <br />
                ?Info? -
                <%=Resources.Language.AdditionalInfo %>
                <br />
                ?UrlReferer?
                <br />
                ?ShipmentCost? -
                <%=Resources.Language.ShipmentCost %>
                <br />
                ?TotalCostNetto? -
                <%=Resources.Language.OrderTotalCostWithShipmentNetto %>
                <br />
                ?TotalCostBrutto? -
                <%=Resources.Language.OrderTotalCostWithShipmentBrutto %>
                <br />
                <strong style="text-align: center;">
                    <%=Resources.Language.CustomerInfo %></strong>
                <br />
                ?CustomerName? -
                <%=Resources.Language.FirstName %>
                <br />
                ?CustomerSurName? -
                <%=Resources.Language.LastName %>
                <br />
                ?CustomerStreet? -
                <%=Resources.Language.Street %>,
                <%=Resources.Language.Number %>
                <br />
                ?CustomerZipCode? -
                <%=Resources.Language.ZipCode %>
                <br />
                ?CustomerCity? -
                <%=Resources.Language.City %>
                <br />
                ?CustomerCountry? -
                <%=Resources.Language.Country %>
                <br />
                ?CustomerEmail? -
                <%=Resources.Language.Email %>
                <br />
                ?CustomerPhone? -
                <%=Resources.Language.Phone %>
                <br />
                <strong style="text-align: center;">
                    <%=Resources.Language.InvoiceData %></strong>
                <br />
                ?CompanyCity? -
                <%=Resources.Language.City %>
                <br />
                ?CompanyName? -
                <%=Resources.Language.Name %>
                <br />
                ?CompanyNIP? -
                <%=Resources.Language.NIP %>
                <br />
                ?CompanyStreet? -
                <%=Resources.Language.Street %>,
                <%=Resources.Language.Number %>
                <br />
                ?CompanyZipCode? -
                <%=Resources.Language.ZipCode %>
                <br />
                <strong style="text-align: center;">
                    <%=Resources.Language.ProductsList %></strong>
                <br />
                ##ItemTemplate# #ItemTemplate## -
                <%=Resources.Language.TableRow%>
                <br />
                ?#Count? -
                <%=Resources.Language.ProductsCount%>
                <br />
                ?#PriceNetto? -
                <%=Resources.Language.PriceNetto%>
                <br />
                ?#PriceBrutto? -
                <%=Resources.Language.PriceBrutto%>
                <br />
                ?#Name? -
                <%=Resources.Language.ProductName%>
                <br />
                ?#TotalPriceNetto? -
                <%=Resources.Language.TotalPriceNetto%>
                <br />
                ?#TotalPriceBrutto? -
                <%=Resources.Language.TotalPriceBrutto%>
                <br />
                <strong style="text-align: center;">
                    <%=Resources.Language.UserData %></strong>
                <br />
                ?UserName? -
                <%=Resources.Language.UserName %>
                <br />
                ?UserEmail? -
                <%=Resources.Language.Email %>
                <br />
                ?UserGuid? -
                <%=Resources.Language.UserGuid %>
                <br />
                ?ActivationLink? -
                <%=Resources.Language.ActivationLink %>
                <br />
                <strong style="text-align: center;">
                    <%=Resources.Language.Voucher %></strong>
                <br />
                ?VoucherCode? -
                <%=Resources.Language.VoucherCode %>
                <br />
                ?MinOrderVal? -
                <%=Resources.Language.MinVoucherValue %>
                <br />
                ?VoucherType? -
                <%=Resources.Language.VoucherType %>
                <br />
                ?VoucherValue? -
                <%=Resources.Language.VoucherValue %>
                <br />
                <strong style="text-align: center;">
                    <%=Resources.Language.PasswordReset %></strong>
                <br />
                ?ShopUrl? -
                <%=Resources.Language.ShopUrl%>
                <br />
                ?UserName? -
                <%=Resources.Language.UserName%>
                <br />
                ?ResetLink? -
                <%=Resources.Language.ResetLink%>
                <br />
                <br />
            </p>
        </fieldset>
    </div>
</asp:Content>
